import React from 'react';
import { Actions } from "react-native-router-flux";
import _ from 'lodash';
import FontAwesome from 'react-native-vector-icons/FontAwesome';
import List from '../../../components/list';

export default ({ data }) => {
  const valueStyle = data && {color: '#ccc'};
  const DATA = [
    {
      title: '短信模板',
      value: data ? '修改' : '未设置',
      icon: <FontAwesome name="envelope-open" size={20} color="#1a8cff" />,
      valueStyle,
      onPress: Actions.editSmsTemplate,
    },
  ];

  return (
    <List
      data={DATA}
      keyPrefix="institution"
      title="功能"
    />
  );
};